<!DOCTYPE html>
<html>
<?php echo $this->fetch('head.html'); ?>
<body>
<div class="header" >
  <div class="title">每日营业额</div>
  <a class="right-btn" href="<?php echo $this->_var['appadmin']; ?>?m=stat_shoporder_day&a=chart&k=<?php echo $this->_var['k']; ?>">图表</a> </div>
<div class="tabs-border">
  <div class="item active"><a href="<?php echo $this->_var['appadmin']; ?>?m=stat_shoporder_day&k=<?php echo $this->_var['k']; ?>">每日营业额</a></div>
  <div class="item"><a href="<?php echo $this->_var['appadmin']; ?>?m=stat_shoporder_week&k=<?php echo $this->_var['k']; ?>">每周营业额</a></div>
  <div class="item"><a href="<?php echo $this->_var['appadmin']; ?>?m=stat_shoporder_month&k=<?php echo $this->_var['k']; ?>">每月营业额</a></div>
</div>
<style>
		.searchform{margin-top:10px;}
    	.searchform .l160{width:160px; float:left;}
		.searchform .l60{width:60px; float:left;}
		.searchform .input-row{margin-bottom:3px;}
    </style>
<form method="get" class="row searchform">
	<input type="hidden" name="m" value="stat_shoporder_day">
    <input type="hidden" name="t" value="rang">
  <div class="l160">
    <div class="input-row">
      <label>开始</label>
      <input type="text" value="<?php echo $_GET['startday']; ?>" name="startday" onClick="WdatePicker({dateFmt:'yyyyMMdd'})">
    </div>
  </div>
  <div class="l160">
    <div class="input-row">
      <label>结束</label>
      <input type="text" value="<?php echo $_GET['endday']; ?>" name="endday" onClick="WdatePicker({dateFmt:'yyyyMMdd'})">
    </div>
  </div>
  <div class="l60">
    <button type="submit" class="btn btn-row">查询</button>
  </div>
</form>
<div class="pd-10">总计营业额<?php echo intval($this->_var['total_money']); ?>元</div>

<div class="uclist"> <?php $_from = $this->_var['list']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
  <div class="item">
    <div class="content pd-5"><?php echo $this->_var['c']['kday']; ?>  营业额￥<span class="money"><?php echo $this->_var['c']['money']; ?></span>元</div>
  </div>
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> </div>
<div><?php echo $this->_var['pagelist']; ?></div>
<?php echo $this->fetch('footer.html'); ?>
<script language="javascript" src="/plugin/My97DatePicker/WdatePicker.js"></script>
</div>
</body>
</html>